<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<title>后台管理</title>
</head>
<body class="body_ifm">
<div class="infoboxp">   <div class="tabs_info">
    <ul>
      <li class="curr"><a href="index.php?m=integral">{yun:}$config.integral_pricename{/yun}设置</a></li>
      <li class=""><a href="index.php?m=integral&c=user">个人{yun:}$config.integral_pricename{/yun}</a></li>
      <li class=""> <a href="index.php?m=integral&c=com">企业{yun:}$config.integral_pricename{/yun}</a></li>
     

	  <li class=""> <a href="index.php?m=integral&c=class">{yun:}$config.integral_pricename{/yun}优惠</a></li>
    </ul>
  </div>
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">{yun:}$config.integral_pricename{/yun}设置</div>
</div>
</div>
<div class="clear"></div>
<div style="height:10px;"></div>


<form class="layui-form">



<div class="main_tag">
<div class="tag_box">
<div>
<table width="100%" class="table_form">
  <tr class="admin_table_trbg">
         <th width="220" bgcolor="#f0f6fb"><span class="admin_bold">参数说明</span></th>
          <td bgcolor="#f0f6fb"><span class="admin_bold">参数值</span></td>
    </tr>
  <tr class="admin_table_trbg">
    <th width="220">{yun:}$config.integral_pricename{/yun}代替词：</th>
    <td><input class="input-text tips_class" type="text" name="integral_pricename" id="integral_pricename" value="{yun:}$config.integral_pricename{/yun}" size="20" maxlength="255"/> <span class="admin_web_tip">默认为{yun:}$config.integral_pricename{/yun}，例：金币</span></td>
  </tr>
  <tr>
    <th width="220">最低充值{yun:}$config.integral_pricename{/yun}：</th>
    <td><input class="input-text tips_class" type="text" name="integral_min_recharge" id="integral_min_recharge" value="{yun:}$config.integral_min_recharge{/yun}" size="20" maxlength="255"/> <span class="admin_web_tip">0 表示不限</span></td>
  </tr>
 
   <tr>
    <th width="220">最低充值金额：</th>
    <td><input class="input-text tips_class" type="text" name="money_min_recharge" id="money_min_recharge" value="{yun:}$config.money_min_recharge{/yun}" size="20" maxlength="255"/> 元<span class="admin_web_tip">0 表示不限</span></td>
  </tr>
    <tr class="admin_table_trbg">
    <th width="220">{yun:}$config.integral_pricename{/yun}单位：</th>
    <td><input class="input-text tips_class" type="text" name="integral_priceunit" id="integral_priceunit" value="{yun:}$config.integral_priceunit{/yun}" size="20" maxlength="255"/> <span class="admin_web_tip">默认为点，例：个，位</span></td>
  </tr>
    <tr>
    <th width="220">{yun:}$config.integral_pricename{/yun}兑换比例：</th>
    <td><input class="input-text tips_class" type="text" name="integral_proportion" id="integral_proportion" value="{yun:}$config.integral_proportion{/yun}" size="20" maxlength="255"/> 点 <span class="admin_web_tip">例：1元=30点{yun:}$config.integral_pricename{/yun}</span></td>
  </tr>
  <tr>
    <th width="220">每日签到送{yun:}$config.integral_pricename{/yun}：</th>
    <td><input class="input-text tips_class" type="text" name="integral_signin" id="integral_signin" value="{yun:}$config.integral_signin{/yun}" size="20" maxlength="255"  onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')"/>{yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}  <span class="admin_web_tip">第六日起，获得{yun:}$config.integral_pricename{/yun}将翻倍。</span></td>
  </tr>
    <tr class="admin_com_td_bg">
  <th width="220">会员注册：</th>
    <td>
      <div class="layui-form-item">
        <div class="layui-input-block">
             <input type="checkbox" name="integral_reg_type" lay-skin="switch" lay-text="加|减"
              {yun:}if $config.integral_reg_type=="1"{/yun}
             checked
              {yun:}/if{/yun}
              disabled />

            <input class="input-text" type="text" name="integral_reg" id="integral_reg" value="{yun:}$config.integral_reg{/yun}" size="13" maxlength="255" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"/> {yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun} 
         </div>
      </div> 
    </td>
  </tr>
    <tr>
  <th width="220">每天第一次登录：</th>
    <td>
      <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="checkbox" name="integral_login_type" lay-skin="switch" lay-text="加|减"
              {yun:}if $config.integral_login_type=="1"{/yun}
             checked
              {yun:}/if{/yun} disabled
              />

            <input class="input-text" type="text" name="integral_login" id="integral_login" value="{yun:}$config.integral_login{/yun}" size="13" maxlength="255" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"/> {yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun} 
        </div>
      </div>
    </td>    
  </tr>

    <tr class="admin_com_td_bg">
  <th width="220">完善基本资料：</th>
    <td>      
      <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="checkbox" name="integral_userinfo_type" lay-skin="switch" lay-text="加|减"
              {yun:}if $config.integral_userinfo_type=="1"{/yun}
             checked
              {yun:}/if{/yun} disabled
              />

            <input class="input-text" type="text" name="integral_userinfo" id="integral_userinfo" value="{yun:}$config.integral_userinfo{/yun}" size="13" maxlength="255" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"/> {yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}
        </div>
      </div>
    </td>
  </tr>  
    <tr>
  <th width="220">邮箱认证：</th>
    <td>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <input type="checkbox" name="integral_emailcert_type" id="integral_emailcert_type" lay-skin="switch" lay-text="加|减"
            {yun:}if $config.integral_emailcert_type=="1"{/yun}
           checked
            {yun:}/if{/yun} disabled
            />

          <input class="input-text" type="text" name="integral_emailcert" id="integral_emailcert" value="{yun:}$config.integral_emailcert{/yun}" size="13" maxlength="255" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"/> {yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}
        </div>
      </div>
    </td>
  </tr>
    <tr class="admin_com_td_bg">
  <th width="220">手机认证：</th>
    <td> 
      <div class="layui-form-item">
        <div class="layui-input-block">
          <input type="checkbox" name="integral_mobliecert_type" id="integral_mobliecert_type" lay-skin="switch" lay-text="加|减"
            {yun:}if $config.integral_mobliecert_type=="1"{/yun}
           checked
            {yun:}/if{/yun} disabled
            />

          <input class="input-text" type="text" name="integral_mobliecert" id="integral_mobliecert" value="{yun:}$config.integral_mobliecert{/yun}" size="13" maxlength="255" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"/> {yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}
        </div>
      </div>
    </td>
  </tr>
    <tr>
  <th width="220">上传头像：</th>
    <td>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <input type="checkbox" name="integral_avatar_type" id="integral_avatar_type" lay-skin="switch" lay-text="加|减"
            {yun:}if $config.integral_avatar_type=="1"{/yun}
           checked
            {yun:}/if{/yun} disabled
            />

          <input class="input-text" type="text" name="integral_avatar" id="integral_avatar" value="{yun:}$config.integral_avatar{/yun}" size="13" maxlength="255" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"/> {yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}
        </div>
      </div>
    </td>
  </tr>
    <tr class="admin_com_td_bg">
  <th width="220">发布问题：</th>
    <td>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <input type="checkbox" name="integral_question_type" id="integral_question_type" lay-skin="switch" lay-text="加|减"
            {yun:}if $config.integral_question_type=="1"{/yun}
           checked
            {yun:}/if{/yun}
            />

          <input class="input-text" type="text" name="integral_question" id="integral_question" value="{yun:}$config.integral_question{/yun}" size="13" maxlength="255" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"/> {yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}
        </div>
      </div>
    </td>
  </tr>

  <tr>
    <th width="220">回答问题：</th>
    <td>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <input type="checkbox" name="integral_answer_type" id="integral_answer_type" lay-skin="switch" lay-text="加|减"
            {yun:}if $config.integral_answer_type=="1"{/yun}
           checked
            {yun:}/if{/yun}
            />

          <input class="input-text" type="text" name="integral_answer" id="integral_answer" value="{yun:}$config.integral_answer{/yun}" size="13" maxlength="255" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"/> {yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}
        </div>
      </div>
    </td>
  </tr>
    <tr class="admin_com_td_bg">
  <th width="220">评论回答：</th>
    <td>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <input type="checkbox" name="integral_answerpl_type" id="integral_answerpl_type" lay-skin="switch" lay-text="加|减"
            {yun:}if $config.integral_answerpl_type=="1"{/yun}
           checked
            {yun:}/if{/yun}
            />

          <input class="input-text" type="text" name="integral_answerpl" id="integral_answerpl" value="{yun:}$config.integral_answerpl{/yun}" size="13" maxlength="255" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"/> {yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}
        </div>
      </div>
    </td>
  </tr>
    <tr>
  <th width="220">邀请注册：</th>
    <td>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <input type="checkbox" name="integral_invite_reg_type" id="integral_invite_reg_type" lay-skin="switch" lay-text="加|减"
            {yun:}if $config.integral_invite_reg_type=="1"{/yun}
           checked
            {yun:}/if{/yun} disabled
            />

          <input class="input-text" type="text" name="integral_invite_reg" id="integral_invite_reg" value="{yun:}$config.integral_invite_reg{/yun}" size="13" maxlength="255" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"/> {yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}
        </div>
      </div>
    </td>
  </tr>

  <tr class="admin_table_trbg">
    <th>&nbsp;</th>
          <td align="left">
      <input class="layui-btn layui-btn-normal" id="integral" type="button" name="config" value="提交" />&nbsp;&nbsp;
      <input class="layui-btn layui-btn-normal" type="reset" value="重置" />
    </td>
  </tr>
</table>
</div>

</div>
</div>
</div>
<input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
<script>
  layui.use(['layer', 'form'], function(){
    var layer = layui.layer
    ,form = layui.form
    ,$ = layui.$;
  });

$(function(){
  $("#integral").click(function(){
    $.post("index.php?m=integral&c=save",{
      config : $("#integral").val(),
      integral_pricename : $("#integral_pricename").val(),
      integral_priceunit : $("#integral_priceunit").val(),
      integral_min_recharge : $("#integral_min_recharge").val(),
      money_min_recharge : $("#money_min_recharge").val(),
	  paypack_max_recharge : $("#paypack_max_recharge").val(),
	  packprice_min_recharge : $("#packprice_min_recharge").val(),
      integral_proportion : $("#integral_proportion").val(),
      integral_signin : $("#integral_signin").val(),
      integral_reg_type : $("input[name=integral_reg_type]").is(":checked") ? 1 : 2,
      integral_reg : $("#integral_reg").val(),
      integral_login_type : $("input[name=integral_login_type]").is(":checked") ? 1 : 2,
      integral_login : $("#integral_login").val(),
      integral_userinfo_type : $("input[name=integral_userinfo_type]").is(":checked") ? 1 : 2,
      integral_userinfo : $("#integral_userinfo").val(),
      integral_emailcert_type : $("#integral_emailcert_type").is(":checked") ? 1 : 2,
      integral_emailcert : $("#integral_emailcert").val(),
      integral_mobliecert_type : $("#integral_mobliecert_type").is(":checked") ? 1 : 2,
      integral_mobliecert : $("#integral_mobliecert").val(),
      integral_avatar_type : $("#integral_avatar_type").is(":checked") ? 1 : 2,
      integral_avatar : $("#integral_avatar").val(),
      integral_question_type : $("#integral_question_type").is(":checked") ? 1 : 2,
      integral_question : $("#integral_question").val(),
      integral_answer_type : $("#integral_answer_type").is(":checked") ? 1 : 2,
      integral_answer : $("#integral_answer").val(),
      integral_answerpl_type : $("#integral_answerpl_type").is(":checked") ? 1 : 2,
      integral_answerpl : $("#integral_answerpl").val(),
      integral_invite_reg_type : $("#integral_invite_reg_type").is(":checked") ? 1 : 2,
      integral_invite_reg : $("#integral_invite_reg").val(),
      pytoken : $("#pytoken").val()
    },function(data,textStatus){
      config_msg(data);
    });
  });
})
</script>
</form>
</body>
</html>